package ru.bragnikita.test.ws.math.service;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * Created with IntelliJ IDEA.
 * User: Nikita
 * Date: 27.01.13
 * Time: 18:12
 * To change this template use File | Settings | File Templates.
 */
@XmlType(name = "MathResultType", namespace = Constants.SERVICE_TYPES_NS)
@XmlAccessorType(XmlAccessType.FIELD)
public class MathResult {

    @XmlElement(name = "source")
    private String sourceExpresson;
    @XmlElement(name =  "username")
    private String username;
    @XmlElement(name = "result")
    private EvaluationResult result;

    public String getSourceExpresson() {
        return sourceExpresson;
    }

    public void setSourceExpresson(String sourceExpresson) {
        this.sourceExpresson = sourceExpresson;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public EvaluationResult getResult() {
        return result;
    }

    public void setResult(EvaluationResult result) {
        this.result = result;
    }
}
